@import '../../styles/colors.less';

.cm-tree-nodes,
.cm-tree-item{
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-tree-item{
    white-space: nowrap;
    margin: 5px 0;
}
.cm-tree > .cm-tree-nodes{
    display: block;
    max-height: none;
}
.cm-tree-nodes{
    display: none;
    // max-height: 0px;
    overflow-y: hidden;
    transition: all 0.25s ease-in-out;
}
.cm-tree-item-content{
    display: flex;
}
.cm-tree-title{
    flex: 1;
}
.cm-tree-text{
    cursor: pointer;
    padding: 4px 4px;
    border-radius: 2px;
    color: @color-ctx;
    transition: all 0.25s ease-in-out;
    &:hover{
        background: #d5e8fc;
    }
}
.cm-tree-item-file,
.cm-tree-item-folder{
    width: 16px;
    text-align: center;
    display: inline-block;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center 40%;
}
.cm-tree-item-folder{
    background-image: url('./folderClosed.gif');
}
.cm-tree-item-file{
    background-image: url('./leaf.gif');
}
.cm-tree-arrow{
    cursor: pointer;
    width: 16px;
    text-align: center;
    display: inline-block;
    background-image: url('./arrow_right.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center 40%;
    transition: all 0.25s ease-in-out;
    &.hide{
        visibility: hidden;
    }
}
.cm-tree-item-open{
    >.cm-tree-item-content{
        .cm-tree-item-folder {
            background-image: url('./folderOpen.gif');
        }
        .cm-tree-arrow{
            transform: rotate(90deg);
            // background-image: url('./arrow_down.svg');
        }
    }
    >.cm-tree-nodes{
        display: block;
    }
}
.cm-tree-nodes-visible.cm-tree-nodes{
    display: block;
}
// .cm-tree-nodes-open.cm-tree-nodes{
    
// }

.cm-tree-item-selected{
    >.cm-tree-item-content{
        .cm-tree-text{
            background: #d5e8fc;
        }
    }
}
.cm-tree {
    .cm-checkbox{
        margin-right: 0;
    }
}